package com.zyl.service.impl;

import com.zyl.mapper.UserMapper;
import org.springframework.stereotype.Service;
import com.zyl.po.User;
import com.zyl.service.UserService;

import javax.annotation.Resource;

/**
 * @author zyl
 * @Description
 * @since 2024/2/21 11:30
 */
@Service
public class UserServiceImpl implements UserService {

    @Resource
    private UserMapper userMapper;

    @Override
    public User getUser(Long id) {
        User user = userMapper.selectById(id);
        return user;
    }
}
